/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
/*
*  \class	TLine
*  \author 	Jari Saarinen
*  \date 	Fri Jun 16 12:26:24 2006

*  \version: 	0.1  
*/


#include "TLine.h"




TLine::TLine(){
	initTLine(0,0,0,0);
}

TLine::TLine(float x1, float y1, float x2, float y2){
	initTLine(x1,y1,x2,y2);	
}

void TLine::initTLine(float x1, float y1, float x2, float y2){
	this->x1 = x1;
	this->x2 = x2;
	this->y1 = y1;
	this->y2 = y2;
	this->p.endpoints2abc(x1, y1, x2, y2);
}

TLine::~TLine()
{
	
}

